package com.fzy.auth.entity;

import com.fzy.core.entity.EntityId;

/**
 * @hibernate.mapping default-lazy="false"
 * @hibernate.meta attribute="class-description" value="资源角色关系"
 * @hibernate.class table="fz_res_role_rel"
 */
public class ResourceRoleRel implements EntityId {
	/**
	 * 
	 */
	private static final long serialVersionUID = -3450984942713423967L;
	Long id;
	Long resourceId;
	Long roleId;
	/**
     * @hibernate.id generator-class="sequence" column="id" type="long" unsaved-value="null"
     * @hibernate.generator-param  name="sequence" value="s_fz_res_role_rel"
     * @hibernate.meta attribute="field-description" value="ID(s_fz_res_role_rel)"
     */
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	/**
     * @hibernate.property column="res_id" type="long" not-null="true"
     * @hibernate.meta attribute="field-description" value="资源ID(fz_res.id)"
     */
	public Long getResourceId() {
		return resourceId;
	}
	public void setResourceId(Long resourceId) {
		this.resourceId = resourceId;
	}
	/**
     * @hibernate.property column="role_id" type="long" not-null="true"
     * @hibernate.meta attribute="field-description" value="角色ID(fz_role.id)"
     */
	public Long getRoleId() {
		return roleId;
	}
	public void setRoleId(Long roleId) {
		this.roleId = roleId;
	}
}
